package com.example.mvicore

import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.flow.StateFlow

interface IModel<I:IIntent,S:IState>{
    val events:Channel<I>
    val status:StateFlow<S>

    /**
     * 处理意图
     */
    fun handleIntent()
}